package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.model.user.UserPaidTrack;
import com.baomidou.mybatisplus.extension.service.IService;
import me.chanjar.weixin.common.error.WxErrorException;

import java.util.List;
import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    Map<String, String> login(String code) throws WxErrorException;

    Boolean isPaidAlbum(Long albumId);

    List<UserPaidTrack> getPaidTracks(Long albumId);

    void updateExpiredVipStatus();
}
